import { createApp } from 'vue'
import App from './App.vue';
import { createPinia } from 'pinia';
import { setupRouter } from './router/index.js';  // 导入路由配置

// 引入element-plus组件，并且添加对应的样式文件
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

// 引入全局样式文件
import '@/global/style/main.less';


const pinia = createPinia();
const app = createApp(App);

console.log('app', app);
setupRouter(app);
app.use(pinia);
app.use(ElementPlus);
app.mount('#app');

